package com.app.service;

import com.app.entity.Course;
import com.app.entity.CourseCollection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yeyuan
 * @since 2021-12-30
 */
public interface CourseCollectionService extends IService<CourseCollection> {

    boolean getIsCollected(Long cid, Long uid);
    boolean collect(Long cid, Long uid);
    boolean cancelCollect(Long cid, Long uid);

    List<Course> getCollectedListByUid(Long uid);
}
